package com.dc.chat.app.biz;

import com.dc.chat.entity.to.ResponseBean;
import com.dc.chat.entity.to.grp.GetMyMGrpResp;
import com.fasterxml.jackson.core.JsonProcessingException;
import org.springframework.web.multipart.MultipartFile;

import java.io.IOException;
import java.util.List;

public interface GrpBiz {
    ResponseBean addGrp(MultipartFile file, String grpName, String grpDescription) throws IOException;

    void setActiveGrp(Integer id);

    ResponseBean<List<GetMyMGrpResp>> getMyMGrp();

    ResponseBean delMyMGrp(Integer id);

    ResponseBean<GetMyMGrpResp> searchGrp(Integer id);

    ResponseBean joinGrp(String message, Integer id);

    ResponseBean getGrpVerif();

    ResponseBean agreeJoinGrp(Integer id) throws JsonProcessingException;

    ResponseBean disAgreeJoinGrp(Integer id);

    ResponseBean getMyApply();

    ResponseBean getMyGrp();

    ResponseBean getGrpMessage();

    ResponseBean setGrpBack(Integer id, String back);

    ResponseBean exitGrp(Integer id);

    ResponseBean inviteUserJoinMyGrp(Integer id, String username) throws JsonProcessingException;
}
